<meta charset="UTF-8">
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-label="Close">
		<span aria-hidden="true">&times;</span>
	</button>
	<h3 class="modal-title">补课申请</h3>
</div>

<div class="container-fluid" id="g_bk_message" style="padding: 20px;">
	
</div>

<div id="bk_123" class="modal-footer">
	<button type="button" class="btn btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
</div>

<div class="modal-footer" id="bk_tj" style="display: none;">
	<button type="button" class="btn btn-success" data-dismiss="modal" id="i_tjsq"><span class="glyphicon glyphicon-ok"></span> 提交申请</button>
	<button type="button" class="btn btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
</div>
<script type="text/javascript">
	$(function(){
		$("#g_bk_message").load("ttb/g_tksq");
		var id2 = $("#i_rcid").val();
		$('#i_tjsq').click(function(){
			var i_bksq_date=$("#i_bksq_date").val();
			var serial= $("#g_myForm").serialize();
			if(i_bksq_date==null||i_bksq_date==''){
				bootbox.alert("请选择补课时间");
				return false;
			}else {
				$.ajax({
				    type: 'post',
				    url: 'ttb/i_tjbksq',
				    data: serial,
				    success: function(data) {
				    	bootbox.alert(data);
				    },error:function(){  
				    	bootbox.alert(data);
		            }
				});
			}
		});
	});
</script>